import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import animated from 'animate.css'
//加载和使用ElementUI框架
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/display.css';
import 'element-ui/lib/theme-chalk/index.css';
import moment from 'moment'





Vue.use(ElementUI);
Vue.use(animated)
Vue.prototype.$EventBus = new Vue()
// Vue.use(jwt_decode)
//导入并使用axios
import axios from './http'
Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.filter('dateFormat', function (dateStr, pattern = "YYYY-MM-DD HH:mm") {
  return moment(dateStr).format(pattern);
})
Vue.filter('dateDay', function (dateStr, pattern = "YYYY-MM-DD") {
  return moment(dateStr).format(pattern);
})



window.bus = new Vue()
new Vue({
  data: {
  },
  router,
  store,
  render: h => h(App)
}

).$mount('#app')
